package connect4client.commands;

import messages.InvalidInvitationReplyMessage;
import messages.InvalidUserDetailsRequestMessage;
import connect4client.core.GameManager;
import connect4client.core.Invitation;

/**
 * The InvalidUserDetailsRequest command.
 * 
 * This command will handle InvalidUserDetailsRequest messages.
 */
public class InvalidUserDetailsRequestCommand extends Command {

	public InvalidUserDetailsRequestCommand(InvalidUserDetailsRequestMessage message){
		super(message);
	}

	@Override
	public void execute() {		
		InvalidUserDetailsRequestMessage message = (InvalidUserDetailsRequestMessage)this.message;
		guiMediator.invalidUserDetailsRequest(message.getOriginalMessage().getLogin(), message.getErrorCode());
	}

}
